﻿<Window x:Class="TestWPF.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:cppei="clr-namespace:CPPEI.WPF;assembly=CPPEI.WPF"
        Title="MainWindow" Height="350" Width="525" WindowStartupLocation="CenterScreen">
    <Grid>
        <Grid Name="GD1">
            <Grid.RowDefinitions>
                <RowDefinition Height="30"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="auto"/>
            </Grid.ColumnDefinitions>
            <StackPanel Grid.Row="0" Orientation="Horizontal">
                <Button Name="_ctlBtnTestSplitContainer" Content="TestSplitContainer" Click="_ctlBtnTestSplitContainer_Click_1" />
                <Button Name="_ctlBtnView1" Content="View1" Click="_ctlBtnView1_Click_1" />
                <Button Name="_ctlBtnView1_r" Content="View2-rotate" Click="_ctlBtnView1_Click_2" />
                <Button Name="_ctlBtnView1_flip" Content="View1-flip" Click="_ctlBtnView1_Click_3" />
                <Button Name="_ctlBtnView2" Content="View2" Click="_ctlBtnView2_Click_1" />
                <Button Name="_ctlBtnView2_r" Content="View2-rotate" Click="_ctlBtnView2_Click_2" />
                <Button Name="_ctlBtnView2_flip" Content="View2-flip" Click="_ctlBtnView2_Click_3" />
                <Button Name="_ctlBtnView2_queue" Content="View2-queue" Click="_ctlBtnView2_Click_4" />
            </StackPanel>
            <cppei:ViewContainer x:Name="_ctlViewContainer" Grid.Row="1" Grid.Column="0">

            </cppei:ViewContainer>
            <ListBox Name="_ctlQueue" Grid.Row="1" Grid.Column="1" Width="200">
                
            </ListBox>
        </Grid>
        <!--<Grid>
            <Viewport3D>

                <Viewport3D.Camera>

                    <PerspectiveCamera x:Name="mycamera"

                                   Position="-32.5,32.5,32.5" 

                                   LookDirection="32.5,-32.5,-32.5" 

                                   UpDirection="0,1,0"/>

                </Viewport3D.Camera>



                <ModelVisual3D>

                    <ModelVisual3D.Content>

                        <DirectionalLight Direction="-1,-1,-1" Color="White"/>

                    </ModelVisual3D.Content>

                </ModelVisual3D>



                <ModelVisual3D>

                    <ModelVisual3D.Content>

                        <DirectionalLight Direction="1,-1,1" Color="White"/>

                    </ModelVisual3D.Content>

                </ModelVisual3D>



                <ModelVisual3D>

                    <ModelVisual3D.Content>

                        <GeometryModel3D>

                            <GeometryModel3D.Geometry>

                                <MeshGeometry3D  Positions="0,0,0 10,0,0 0,10,0 10,10,0

                                                        0,0,0 0,0,10 0,10,0 0,10,10

                                                        0,0,0 10,0,0 0,0,10 10,0,10

                                                        10,0,0 10,10,10 10,0,10 10,10,0

                                                        0,0,10 10,0,10 0,10,10 10,10,10

                                                        0,10,0 0,10,10 10,10,0 10,10,10"

                                             TriangleIndices="0,2,1 1,2,3

                                             4,5,6 6,5,7

                                             8,9,10 9,11,10

                                             12,13,14 12,15,13

                                             16,17,18 19,18,17

                                             20,21,22 22,21,23"

                                             TextureCoordinates="1,1 0,1 1,0 0,0

                                             0,1 1,1 0,0 1,0

                                             0,0 1,0 0,1 1,1

                                             1,1 0,0 0,1 1,0

                                             0,1 1,1 0,0 1,0

                                             0,0 0,1 1,0 1,1"/>

                            </GeometryModel3D.Geometry>

                            <GeometryModel3D.Material>

                                <DiffuseMaterial>
                                    <DiffuseMaterial.Brush>

                                        <VisualBrush Visual="{Binding ElementName=GD1}">
                                        </VisualBrush>

                                    </DiffuseMaterial.Brush>

                                </DiffuseMaterial>

                            </GeometryModel3D.Material>
                        </GeometryModel3D>

                    </ModelVisual3D.Content>

                </ModelVisual3D>

            </Viewport3D>
        </Grid>-->
    </Grid>
</Window>
